import 'package:flutter/material.dart';

class Userinfomodel with ChangeNotifier{//这里也可以使用with来进行实现
  String userId;
  String authorization =  'Hello world!';
  String portraiturl;
  String nickname = 'sss';
  bool get islogin => userId != null;

  void setuserId(String email){
    this.userId = email;
    notifyListeners();
  }

  String getuserId(){
    return this.userId;
  }

  void setauthorization(String authorization){
    this.authorization = authorization;
    notifyListeners();
  }

  String getauthorization(){
    return this.authorization;
  }

  void setportraiturl(String portraiturl){
    this.portraiturl = portraiturl;
    notifyListeners();
  }

  String getportraiturl(){
    return this.portraiturl;
  }

  void setnickname(String nickname){
    this.nickname = nickname;
    notifyListeners();
  }

  String getnickname(){
    return this.nickname;
  }



}